package com.lxl.securitypermission.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(value = "AdminController",tags = "AdminController")
@Controller
@RequestMapping("/admin")
public class AdminController {

  @ApiOperation("主页面")
  @GetMapping("")
  public String index() {
    return "/admin/index";
  }

  @ApiOperation("欢迎页面")
  @GetMapping("welcome")
  public String welcome() {
    return "admin/welcome";
  }
}
